﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Desktop.aspx.cs" Inherits="syc.Desktop" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
<script type="text/javascript">
    parent.resetPanel("我的首页");
    parent.addPanel("我的菜单","","/icons/24x24/user_god.png");
    
    
    //parent.addMenu("日生产报表", "/Fc/分厂内日报表.aspx");
    //parent.addMenu("月生产报表", "/Fc/分厂内月报表.aspx");
    
    //parent.addMenu("物料分类编码管理", "/Store/物料分类编码管理.aspx");
    //parent.addMenu("设备资产管理", "/JiDong/设备资产管理.aspx");
    //parent.addMenu("分厂进度日报表", "/Fc/分厂进度日报表.aspx");
    //parent.addMenu("生产进度日报表2", "Produce/生产进度日报表2.aspx", '');
    //parent.addMenu("产品管理", "/FC/产品管理.aspx", '');
    
    
    parent.addMenu("修改密码", "/ChangePwd.aspx");

    <%

#if DEBUG
        Response.Write("parent.addMenu('分厂身份模拟', '/Admin/分厂身份模拟.aspx');");
#else
    if ((string)Session["OperatorID"] == "admin")
    {
        Response.Write("parent.addMenu('分厂身份模拟', '/Admin/分厂身份模拟.aspx');");
    }
#endif
     %>
    
    parent.openmenu();
    parent.dialog_login_hide();
    parent.document.getElementById('adesktop').innerHTML = '<%=Session["OperatorName"] %>';
    if (parent.document.getElementById('adesktop').innerHTML == "") {
        parent.document.getElementById('adesktop').innerHTML = "登录";
    }
</script>
</head>
<body bgcolor="white">
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">
<div id="wintop" class="wintop">我的首页</div>
</form>
</body>
</html>
